package com.shop.coupon.controller;

import com.shop.common.core.domain.Result;
import com.shop.coupon.domain.CouponHistory;
import com.shop.coupon.domain.vo.CouponHistoryVo;
import com.shop.coupon.service.CouponHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/CouponHistory")
public class CouponHistoryController {
    @Autowired
    private CouponHistoryService couponHistoryService;


    @PostMapping("/couponDrawDown")
    public Result<CouponHistory> couponDrawDown(@RequestBody CouponHistory couponHistory){
        return couponHistoryService.couponDrawDown(couponHistory);
    }
}
